package tp2lab;

import static org.junit.Assert.*;

import org.junit.*;

public class DeckTest {
    private Deck deck;
    
    @Before
    public void setUp(){
        deck = new Deck();
    }
    
    @Test
    public void drawCardTest(){
        
        assertTrue("Nie dziala metoda Decku add()", deck.drawCard() instanceof Card);
    }
    
    @Test
    public void deckTest(){
        Deck deck = new Deck();
        assertTrue("Nie dziala konstruktor Decku", deck instanceof Deck);
        Card card = null;
        for(int i = 0; i < 52; ++i){
            card = deck.drawCard();
        }
        assertNotNull("Nie dziala konstruktor Decku", card);
    }
    
    @After
    public void tearDown(){
        deck = null;
    }

}
